package org.vellos.halide.vm;

import org.vellos.halide.parse.ExpressionNode;

public class BasicOperators {

  public static String defparameter(ExpressionNode en, VirtualMachine vm) {
    // TODO: Reserve words check.

    String parameterName = (String) en.getNodes().get(1);
    String parameterValue = (String) en.getNodes().get(2);

    vm.setVariable(parameterName, parameterValue);
    return parameterName;
  }
}
